FROM openjdk:17
LABEL authors="路人甲"
VOLUME /tmp
WORKDIR /usr/local/BeWorth
COPY *.jar /usr/local/BeWorth/be-worth.jar
COPY config /usr/local/BeWorth/config
EXPOSE 8080
ENTRYPOINT ["java", "-Xms256m", "-Xmx256m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "./be-worth.jar", "--spring.config.additional-location=./config/application.yaml"]